use super::model::ProjectDependency;

#[test]
fn test_name() {
    let project_dependency = ProjectDependency {
        url: "git+https://gitee.com/hanshu_alan/api-factory.git#0.1.0".to_string(),
        is_dev: true,
    };
    assert_eq!(
        project_dependency.name().expect("name error"),
        "api-factory"
    );
}
